// 权限类型

export interface MenuType {
  id?: number;
  name: string;
  acl: string;
  parentId?: number;
  level?: number;
  children?: [];
}

export interface MenuEditResponse extends ResponseData {
  data: boolean;
}

export interface MenusResponse extends ResponseData {
  data: MenuType[];
}

export interface MenuResponse extends ResponseData {
  data: MenuType;
}

// 定义全部接口返回数据都拥有ts类型
interface ResponseData {
  code: number;
  message: string;
}
